package com.example.cslp.service.Impl;

import com.example.cslp.mapper.ResourceMapper;
import com.example.cslp.pojo.VO.ResourceListVO;
import com.example.cslp.service.IResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResourceServiceImpl implements IResourceService {

    @Autowired
    private ResourceMapper  resourceMapper;

    @Override
    public List<ResourceListVO> list() {
        List<ResourceListVO> list = resourceMapper.list();
        return list;
    }

    @Override
    public List<ResourceListVO> query(String resourceName) {
        List<ResourceListVO> resourceListVOS = resourceMapper.pageList(resourceName);
        return resourceListVOS;
    }
}
